<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <div>
            <input type="text" placeholder="用户名" v-model="userInfo.username"> {{userInfo.username}}
        </div>
        <div>
            <input type="password" placeholder="用户密码" v-model="userInfo.password"> {{userInfo.password}}
        </div>
        <div>
            <input type="checkbox" value="1" v-model="sports"> 篮球
            <input type="checkbox" value="2" v-model="sports"> 足球
            <input type="checkbox" value="3" v-model="sports"> 排球
            <input type="checkbox" value="4" v-model="sports"> 台球
            <br>
            {{sports}}
        </div>
        <div>
            <input type="radio" value="male" v-model="gender"> 男
            <input type="radio" value="femal" v-model="gender"> 女
            <br>
            {{gender}}
        </div>
        <div>
            <select v-model="city">
                <option value="BeiJing">北京</option>
                <option value="ShangHai">上海</option>
                <option value="GuangZhou">广州</option>
                <option value="ShenYang">沈阳</option>
            </select>
            <br>
            {{city}}
        </div>
     </div>
 
     <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
     <script>
         let vm = new Vue({
             el : '#app',
             data :{
                 userInfo : {
                    username : '',
                    password : '',
                 },
                 sports : [],
                 gender : '',
                 city :''
             },
             methods:{}
         });
     </script> 
</body>
</html>